<!DOCTYPE html>
<html>

<head>
	<title>{$title}</title>
    <meta charset="utf-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
	<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta name="full-screen" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<meta name="format-detection" content="address=no">
	
	<!-- import CSS -->
	<link rel="stylesheet" href="{$Think.config.site.resource_url}css/assets/style.css">
	<script src="{$Think.config.site.resource_url}js/assets/jquery.js"></script>
	<link rel="stylesheet" href="{$Think.config.site.resource_url}css/assets/alert.css">
	<script src="{$Think.config.site.resource_url}js/assets/alert.js"></script>

</head>

<body>	
<!-- 顶部 -->
<div class="head">
	<div class="head_back"><a onClick="javascript :history.back(-1);"><img src="{$Think.config.site.resource_url}images/assets/arrow.png"></a></div>
    <div class="head_txt">绑定机柜</div>
</div>

<div class="store_main">
	<div class="binding_main">
		<iframe src="" frameborder="0" name="add_form_iframe" style="display: none"></iframe>
		<form action="/home/Charecabinet/bind?sid={$sid}" id="form" target="add_form_iframe" method="post">
			<div class="binding_tit">机柜选择：选择机柜ID</div>
			<div class="binding_select">
				<select name="id">
					<option value="">请选择机柜ID</option>
					{volist name="charecabinets" id="v"}
						<option value="{$v.id}">{$v.cabinet_id}</option>
					{/volist}
				</select>
			</div>
			<div class="binding_btn">
				<button class="state_confirm">确认</button>
				<button type="reset">取消</button>
			</div>
		</form>
	</div>
</div>
<script>
    function backFunc(data) {
        if(data.res == 1) {
            alert_success(data.msg);
            setTimeout(function(){window.location.reload();}, 1000);
        }else{
            alert_fail(data.msg);
        }
    }
</script>
